﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using QLPKWeb.Models.FormBean.Base;
using DONGACS.DTO;
using Webdiyer.WebControls.Mvc;

namespace QLPKWeb.Models.FormBean.PhanQuyen
{
    public class RolesForm:FormBase<RolesDto>
    {
        /// <summary>
        /// Gets or sets RoleName.
        /// </summary>
        public System.String RoleName { get; set; }

        /// <summary>
        /// Gets or sets LoweredRoleName.
        /// </summary>
        public System.String LoweredRoleName { get; set; }

        /// <summary>
        /// Gets or sets Description.
        /// </summary>
        public System.String Description { get; set; }

        /// <summary>
        /// Gets or sets IsDelete.
        /// </summary>
        public System.Boolean IsDelete { get; set; }

        /// <summary>
        /// Gets or sets IsEnable.
        /// </summary>
        public System.Boolean IsEnable { get; set; }

        /// <summary>
        /// Gets or sets CreateDate.
        /// </summary>
        public System.DateTime CreateDate { get; set; }

        /// <summary>
        /// Gets or sets UpdateDate.
        /// </summary>
        public System.DateTime UpdateDate { get; set; }

        /// <summary>
        /// Gets or sets CreateBy.
        /// </summary>
        public int CreateBy { get; set; }

        /// <summary>
        /// Gets or sets UpdateBy.
        /// </summary>
        public int UpdateBy { get; set; }


        //Extend

        public string CreateByUser { get; set; }

        public string UpdateByUser { get; set; }

        public string CreateDateString { get; set; }

        public string UpdateDateString { get; set; }


        public IList<RolesDto> RolesList { get; set; }

        public PagedList<RolesDto> RolesPagedList { get; set; }

        public string RolesID { get; set; }

        public string MessageCreateRoles{ get; set;}

        public string MessageEditRoles { get; set; }


        //Extend for ManageRolesWithPermissions
        public IList<PathsDto> PathsList { get; set; }
        public IList<RolesInPathsDto> RolesInPathsByRolesIdList { get; set; }
        public IList<PathsDto> PathsForRolesList { get; set; }
        public string CurrentRolesId { get; set; }
        public string CurrentRolesIdTemp { get; set; }
        public string UpdateSatusMessage { get; set; }
        public bool UpdateFlag { get; set; }
        public bool RolesClickFlag { get; set; }
        public string NewRolesInPathsString { get; set; }


        //Mọi Blocks trong Ứng đụng
        public IList<string> Blocks { get; set; }
        //Mọi module trong Ứng đụng
        //public IList<string> Modules { get; set; }
        //Mảng các List chứa Module theo Block
        public IList<string>[] ModulesByBlockArray { get; set; }

        //Phục vụ phân trang
        public int CurrentPageNumber { get; set; }


    }
}
